package com.wisezone.workflow.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.wisezone.common.bean.entity.BaseEntity;

/**
 * 
 *流程变量实例
 * 
 * @author tss 2009-12-29
 * 
 */
@Entity
@Table(name = "wf_variable_instance")
public class WfVariableInstance extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8078513854962532538L;
	/**
	 * ID
	 */
	private Long id;
	/**
	 * 
	 *流程模板Id
	 * 
	 */
	@Column(name = "process_def_id", length = 8)
	private Long processDefId;

	/**
	 * 
	 *活动ID
	 * 
	 */
	@Column(name = "activity_id", length = 8)
	private Long activityId;

	/**
	 * 
	 *流程实例Id
	 * 
	 */
	@Column(name = "process_inst_id", length = 8)
	private Long processInstId;

	/**
	 * 
	 *活动实例ID
	 * 
	 */
	@Column(name = "activity_inst_id", length = 8)
	private Long activityInstId;

	/**
	 * 
	 *名称
	 * 
	 */
	@Column(name = "name", length = 20)
	private String name;

	/**
	 * 原始类型值
	 */
	@Column(name = "value", columnDefinition = "LONGTEXT")
	private String value;

	public Long getProcessInstId() {
		return processInstId;
	}

	public void setProcessInstId(Long processInstId) {
		this.processInstId = processInstId;
	}

	public Long getActivityInstId() {
		return activityInstId;
	}

	public void setActivityInstId(Long activityInstId) {
		this.activityInstId = activityInstId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public Long getProcessDefId() {
		return processDefId;
	}

	public void setProcessDefId(Long processDefId) {
		this.processDefId = processDefId;
	}

	public Long getActivityId() {
		return activityId;
	}

	public void setActivityId(Long activityId) {
		this.activityId = activityId;
	}

	@Override
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

}